var doneList = {
    props:["donelist","indexdonelist"],
    template: `
    <div>
    <div class="body-head">
        <h2>已办事项:</h2>
        <div class="num">{{indexdonelist}}</div>
    </div>

    <ol class="done">
        <li class="do" v-for="(item,index) in donelist">
            {{item}}
            <button v-on:click="del1Click(index)">删除</button>
        </li>
    </ol>
    </div>
    `,
    methods: {
        del1Click(index) {
            this.$emit("del",index);
        }
    },
}
export default doneList;